//
//  HeadNotificationCell.m
//  carcareIOS
//
//  Created by tianxing on 16/3/17.
//  Copyright © 2016年 chezheng. All rights reserved.
//

#import "HeadNotificationCell.h"

@interface HeadNotificationCell()

@property (nonatomic ,strong) UILabel        *tripInformL;              // 行程通知

@end


@implementation HeadNotificationCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier withMessage:(NSString *)message{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        // 通知分割线
        [[[UIView viewWithFrame:CGRectMake(0, self.top, __MAIN_WIDTH, 0.5)] resetBackgroundColor:COLOR_HEXSTRING(@"#E7E7E7")] setupOnView:self];
        // 通知图标
        UIImageView *noticeImage = [Factory imageViewWithCenter:CGPointMake(22.5 * __MAIN_RATIO_375, self.centerY) image:ImageNamed(@"Home_notice") onView:self];
        // 通知内容
        self.tripInformL = [Factory labelWithFrame:CGRectMake(noticeImage.right + 9 * __MAIN_RATIO_375, 0 , __MAIN_WIDTH - 50 * __MAIN_RATIO_375, 15) font:FONT_DEFAULT_Light(13) text:message textColor:nil onView:self textAlignment:NSTextAlignmentLeft];
        self.tripInformL.centerY = self.centerY;
        
    }
    return self;
}

@end
